package com.hyz.controller;

import com.hyz.pojo.AssetLog;
import com.hyz.service.AssetLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author HGD
 * @date 2022/10/8 16:25
 */
@RestController
@RequestMapping("/assetLog")
@Api("资产日志")
public class AssetLogController {
    @Autowired
    private AssetLogService service;

    @ApiOperation("创建资产日志")
    @PostMapping("/insertAssetLog")
    public void insertAssetLog(@RequestBody AssetLog assetLog) {
        service.save(assetLog);
    }
}
